namespace demoIsStringEqual
{
    class Program
    {
        public void TestPrint()
        {
            string a = "hello";		//声明string类型变量a
            string b = a;		//将a赋予b，实际上是将a的引用地址赋给b
            string c = "h";			//声明string类型变量c
            c += "ello";
            Console.WriteLine(a == b);	 //比较a，b两个引用是否相等
            Console.WriteLine((object)a == (object)c);
            Console.WriteLine(a == c);               //比较a，c两个对象的值是否相等
 
            Console.ReadKey();
        }
    }
}